import java.util.Random;

public class kaoshi {
    public static void main(String[] args) {
        int[] arr = new int [3];
        Random r=new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i]=r.nextInt(20-5+1)+5;
        }
        int max = 0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
            if (arr[i] > max) {
                max = arr[i];
            }
        }
        System.out.println("该数组的最大值为:"+max);


    }
}
